class userInfoList {
  bool success;
  String message;
  int code;
  List<userinfo> result;
  int timestamp;

  userInfoList(
      {this.success, this.message, this.code, this.result, this.timestamp});

  userInfoList.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<userinfo>();
      json['result'].forEach((v) {
        result.add(new userinfo.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;

    return data;
  }
}

class userinfo {
  var id;
 var createTime;
 var updateTime;
 var deleteTime;
 var companyNum;
 var userName;
 var userNumber;
 var password;
  var state;
  var meterId;
  var fullName;
  var companyName;
  var address;
  var phone;
  var fax;
  var legalPerson;
  var legalPersonTel;
  var email;
  var manageDepartment;
  var departPhone;
  var departTel;
  var departContacter;
  var contacterTel2;
  var contacterTel;
  var alarmStatus;
  var contacterEmail;
  var onDutyPhone;
  var operationTime;
  var funPermissions;
  var price;
  var pinyin;
  var balance;
  var steam;
  var adjustmentPrice;
  var adjustmentDate;
  var priceType;
  var supplyerId;
  var latestRechargeTime;
  var latestRechargeMoney;
  var lastPrice;
  var lastAdjDate;
  var bank;
  var accountNumber;
  var identifier;
  var invoiceCompany;
  var invoicePhone;
  var invoiceAddress;
  var temperatureShow;
  var settleDate;
  var valveControl;
  var valveLimit;
  var limitValue;
  var limitDate;
  var limitState;
  var limstate;
  var limposition;
  var msgTargetPerson;
  var msgNotice;
  var initialize;
  var deposit;
  var payType;
  var protocol;
  var alarmId;
  var alarmParamId;
  var settleId;
  var balanceShow;
  var steamShow;
  var fid;
  var pid;
  var valveState;
  var valvePosition;
  var isSetLimit;
  var alertState;
  var smsState;
  var alertMin1;
  var alertMin2;
  var alertDays;
  var focusUser;
  var longitude;
  var latitude;
  var telNumber;
  var dtuId;
  var dtuAddress;
  var type;
  var model;
  var format;
  var dataState;
  var commState;
  var useState;
  var valveType;
  var generation;
  var deviceMap;
  var distance;
  var pointSelect;
  var tradeDivision;
  var prepaymentBalanceMin1;
  var prepaymentBalanceMin2;
  var prepaymentMarginMin1;
  var prepaymentMarginMin2;
  var smCheck;
  var daysNumberInterval;
  var checkBalanceMargin;
  var lineName;
  var alarmProperty;
  var alarmShowName;
  var alarmContent;
  var schemeName;
  var tbsSchemesName;
  bool delete;

  userinfo(
      {this.id,
        this.createTime,
        this.updateTime,
        this.deleteTime,
        this.companyNum,
        this.userName,
        this.userNumber,
        this.password,
        this.state,
        this.meterId,
        this.fullName,
        this.alarmStatus,
        this.companyName,
        this.address,
        this.phone,
        this.fax,
        this.legalPerson,
        this.legalPersonTel,
        this.email,
        this.manageDepartment,
        this.departPhone,
        this.departTel,
        this.departContacter,
        this.contacterTel2,
        this.contacterTel,
        this.contacterEmail,
        this.onDutyPhone,
        this.operationTime,
        this.funPermissions,
        this.price,
        this.pinyin,
        this.balance,
        this.steam,
        this.adjustmentPrice,
        this.adjustmentDate,
        this.priceType,
        this.supplyerId,
        this.latestRechargeTime,
        this.latestRechargeMoney,
        this.lastPrice,
        this.lastAdjDate,
        this.bank,
        this.accountNumber,
        this.identifier,
        this.invoiceCompany,
        this.invoicePhone,
        this.invoiceAddress,
        this.temperatureShow,
        this.settleDate,
        this.valveControl,
        this.valveLimit,
        this.limitValue,
        this.limitDate,
        this.limitState,
        this.limstate,
        this.limposition,
        this.msgTargetPerson,
        this.msgNotice,
        this.initialize,
        this.deposit,
        this.payType,
        this.protocol,
        this.alarmId,
        this.alarmParamId,
        this.settleId,
        this.balanceShow,
        this.steamShow,
        this.fid,
        this.pid,
        this.valveState,
        this.valvePosition,
        this.isSetLimit,
        this.alertState,
        this.smsState,
        this.alertMin1,
        this.alertMin2,
        this.alertDays,
        this.focusUser,
        this.longitude,
        this.latitude,
        this.telNumber,
        this.dtuId,
        this.dtuAddress,
        this.type,
        this.model,
        this.format,
        this.dataState,
        this.commState,
        this.useState,
        this.valveType,
        this.generation,
        this.deviceMap,
        this.distance,
        this.pointSelect,
        this.tradeDivision,
        this.prepaymentBalanceMin1,
        this.prepaymentBalanceMin2,
        this.prepaymentMarginMin1,
        this.prepaymentMarginMin2,
        this.smCheck,
        this.daysNumberInterval,
        this.checkBalanceMargin,
        this.lineName,
        this.alarmProperty,
        this.alarmShowName,
        this.alarmContent,
        this.schemeName,
        this.tbsSchemesName,
        this.delete});

  userinfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    deleteTime = json['deleteTime'];
    companyNum = json['companyNum'];
    userName = json['userName'];
    userNumber = json['userNumber'];
    password = json['password'];
    state = json['state'];
    meterId = json['meterId'];
    fullName = json['fullName'];
    companyName = json['companyName'];
    address = json['address'];
    alarmStatus = json['alarmStatus'];
    phone = json['phone'];
    fax = json['fax'];
    legalPerson = json['legalPerson'];
    legalPersonTel = json['legalPersonTel'];
    email = json['email'];
    manageDepartment = json['manageDepartment'];
    departPhone = json['departPhone'];
    departTel = json['departTel'];
    departContacter = json['departContacter'];
    contacterTel2 = json['contacterTel2'];
    contacterTel = json['contacterTel'];
    contacterEmail = json['contacterEmail'];
    onDutyPhone = json['onDutyPhone'];
    operationTime = json['operationTime'];
    funPermissions = json['funPermissions'];
    price = json['price'];
    pinyin = json['pinyin'];
    balance = json['balance'];
    steam = json['steam'];
    adjustmentPrice = json['adjustmentPrice'];
    if(null != json['adjustmentDate']) {
      adjustmentDate = json['adjustmentDate'];
    }else{
      adjustmentDate = "";
    }
    priceType = json['priceType'];
    supplyerId = json['supplyerId'];
    latestRechargeTime = json['latestRechargeTime'];
    latestRechargeMoney = json['latestRechargeMoney'];
    lastPrice = json['lastPrice'];
    lastAdjDate = json['lastAdjDate'];
    bank = json['bank'];
    accountNumber = json['accountNumber'];
    identifier = json['identifier'];
    invoiceCompany = json['invoiceCompany'];
    invoicePhone = json['invoicePhone'];
    invoiceAddress = json['invoiceAddress'];
    temperatureShow = json['temperatureShow'];
    settleDate = json['settleDate'];
    valveControl = json['valveControl'];
    valveLimit = json['valveLimit'];
    limitValue = json['limitValue'];
    limitDate = json['limitDate'];
    limitState = json['limitState'];
    limstate = json['limstate'];
    limposition = json['limposition'];
    msgTargetPerson = json['msgTargetPerson'];
    msgNotice = json['msgNotice'];
    initialize = json['initialize'];
    deposit = json['deposit'];
    payType = json['payType'];
    protocol = json['protocol'];
    alarmId = json['alarmId'];
    alarmParamId = json['alarmParamId'];
    settleId = json['settleId'];
    balanceShow = json['balanceShow'];
    steamShow = json['steamShow'];
    fid = json['fid'];
    pid = json['pid'];
    valveState = json['valveState'];
    valvePosition = json['valvePosition'];
    isSetLimit = json['isSetLimit'];
    alertState = json['alertState'];
    smsState = json['smsState'];
    alertMin1 = json['alertMin1'];
    alertMin2 = json['alertMin2'];
    alertDays = json['alertDays'];
    focusUser = json['focusUser'];
    longitude = json['longitude'];
    latitude = json['latitude'];
    telNumber = json['telNumber'];
    dtuId = json['dtuId'];
    dtuAddress = json['dtuAddress'];
    type = json['type'];
    model = json['model'];
    format = json['format'];
    dataState = json['dataState'];
    commState = json['commState'];
    useState = json['useState'];
    valveType = json['valveType'];
    generation = json['generation'];
    deviceMap = json['deviceMap'];
    distance = json['distance'];
    pointSelect = json['pointSelect'];
    tradeDivision = json['tradeDivision'];
    prepaymentBalanceMin1 = json['prepaymentBalanceMin1'];
    prepaymentBalanceMin2 = json['prepaymentBalanceMin2'];
    prepaymentMarginMin1 = json['prepaymentMarginMin1'];
    prepaymentMarginMin2 = json['prepaymentMarginMin2'];
    smCheck = json['smCheck'];
    daysNumberInterval = json['daysNumberInterval'];
    checkBalanceMargin = json['checkBalanceMargin'];
    lineName = json['lineName'];
    alarmProperty = json['alarmProperty'];
    alarmShowName = json['alarmShowName'];
    alarmContent = json['alarmContent'];

    if(null == json['schemeName']||json['schemeName'].toString().length<=0){
      schemeName = "";
    }else{
      schemeName = json['schemeName'];
    }





    tbsSchemesName = json['tbsSchemesName'];
    delete = json['delete'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['createTime'] = this.createTime;
    data['updateTime'] = this.updateTime;
    data['deleteTime'] = this.deleteTime;
    data['companyNum'] = this.companyNum;
    data['userName'] = this.userName;
    data['userNumber'] = this.userNumber;
    data['alarmStatus'] = this.alarmStatus;

    data['password'] = this.password;
    data['state'] = this.state;
    data['meterId'] = this.meterId;
    data['fullName'] = this.fullName;
    data['companyName'] = this.companyName;
    data['address'] = this.address;
    data['phone'] = this.phone;
    data['fax'] = this.fax;
    data['legalPerson'] = this.legalPerson;
    data['legalPersonTel'] = this.legalPersonTel;
    data['email'] = this.email;
    data['manageDepartment'] = this.manageDepartment;
    data['departPhone'] = this.departPhone;
    data['departTel'] = this.departTel;
    data['departContacter'] = this.departContacter;
    data['contacterTel2'] = this.contacterTel2;
    data['contacterTel'] = this.contacterTel;
    data['contacterEmail'] = this.contacterEmail;
    data['onDutyPhone'] = this.onDutyPhone;
    data['operationTime'] = this.operationTime;
    data['funPermissions'] = this.funPermissions;
    data['price'] = this.price;
    data['pinyin'] = this.pinyin;
    data['balance'] = this.balance;
    data['steam'] = this.steam;
    data['adjustmentPrice'] = this.adjustmentPrice;
    data['adjustmentDate'] = this.adjustmentDate;
    data['priceType'] = this.priceType;
    data['supplyerId'] = this.supplyerId;
    data['latestRechargeTime'] = this.latestRechargeTime;
    data['latestRechargeMoney'] = this.latestRechargeMoney;
    data['lastPrice'] = this.lastPrice;
    data['lastAdjDate'] = this.lastAdjDate;
    data['bank'] = this.bank;
    data['accountNumber'] = this.accountNumber;
    data['identifier'] = this.identifier;
    data['invoiceCompany'] = this.invoiceCompany;
    data['invoicePhone'] = this.invoicePhone;
    data['invoiceAddress'] = this.invoiceAddress;
    data['temperatureShow'] = this.temperatureShow;
    data['settleDate'] = this.settleDate;
    data['valveControl'] = this.valveControl;
    data['valveLimit'] = this.valveLimit;
    data['limitValue'] = this.limitValue;
    data['limitDate'] = this.limitDate;
    data['limitState'] = this.limitState;
    data['limstate'] = this.limstate;
    data['limposition'] = this.limposition;
    data['msgTargetPerson'] = this.msgTargetPerson;
    data['msgNotice'] = this.msgNotice;
    data['initialize'] = this.initialize;
    data['deposit'] = this.deposit;
    data['payType'] = this.payType;
    data['protocol'] = this.protocol;
    data['alarmId'] = this.alarmId;
    data['alarmParamId'] = this.alarmParamId;
    data['settleId'] = this.settleId;
    data['balanceShow'] = this.balanceShow;
    data['steamShow'] = this.steamShow;
    data['fid'] = this.fid;
    data['pid'] = this.pid;
    data['valveState'] = this.valveState;
    data['valvePosition'] = this.valvePosition;
    data['isSetLimit'] = this.isSetLimit;
    data['alertState'] = this.alertState;
    data['smsState'] = this.smsState;
    data['alertMin1'] = this.alertMin1;
    data['alertMin2'] = this.alertMin2;
    data['alertDays'] = this.alertDays;
    data['focusUser'] = this.focusUser;
    data['longitude'] = this.longitude;
    data['latitude'] = this.latitude;
    data['telNumber'] = this.telNumber;
    data['dtuId'] = this.dtuId;
    data['dtuAddress'] = this.dtuAddress;
    data['type'] = this.type;
    data['model'] = this.model;
    data['format'] = this.format;
    data['dataState'] = this.dataState;
    data['commState'] = this.commState;
    data['useState'] = this.useState;
    data['valveType'] = this.valveType;
    data['generation'] = this.generation;
    data['deviceMap'] = this.deviceMap;
    data['distance'] = this.distance;
    data['pointSelect'] = this.pointSelect;
    data['tradeDivision'] = this.tradeDivision;
    data['prepaymentBalanceMin1'] = this.prepaymentBalanceMin1;
    data['prepaymentBalanceMin2'] = this.prepaymentBalanceMin2;
    data['prepaymentMarginMin1'] = this.prepaymentMarginMin1;
    data['prepaymentMarginMin2'] = this.prepaymentMarginMin2;
    data['smCheck'] = this.smCheck;
    data['daysNumberInterval'] = this.daysNumberInterval;
    data['checkBalanceMargin'] = this.checkBalanceMargin;
    data['lineName'] = this.lineName;
    data['alarmProperty'] = this.alarmProperty;
    data['alarmShowName'] = this.alarmShowName;
    data['alarmContent'] = this.alarmContent;
    data['schemeName'] = this.schemeName;
    data['tbsSchemesName'] = this.tbsSchemesName;
    data['delete'] = this.delete;
    return data;
  }
}
